import{g as U,a as j,s as L,_ as n,r as g,u as V,J as Nt,K as Ct,b as w,N as dt,O as pt,j as s,c as M,d as W,Q as nt,R as $t,S as B,C as X,P as It,U as St,V as Rt,W as Ft,M as Ut,X as kt,Y as at,Z as jt,T as Y,l as Z,E as st,G as it,H as lt,$ as Vt,I as Bt,B as Wt,a0 as Ht,m as Gt,a1 as qt,L as Xt,F as ht}from"./index-aaf7dbcc.js";function Yt(t){return U("MuiCollapse",t)}j("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Jt=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Kt=t=>{const{orientation:e,classes:o}=t,r={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return W(r,Yt,o)},Qt=L("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,e[o.orientation],o.state==="entered"&&e.entered,o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&e.hidden]}})(({theme:t,ownerState:e})=>n({height:0,overflow:"hidden",transition:t.transitions.create("height")},e.orientation==="horizontal"&&{height:"auto",width:0,transition:t.transitions.create("width")},e.state==="entered"&&n({height:"auto",overflow:"visible"},e.orientation==="horizontal"&&{width:"auto"}),e.state==="exited"&&!e.in&&e.collapsedSize==="0px"&&{visibility:"hidden"})),Zt=L("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(({ownerState:t})=>n({display:"flex",width:"100%"},t.orientation==="horizontal"&&{width:"auto",height:"100%"})),te=L("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(({ownerState:t})=>n({width:"100%"},t.orientation==="horizontal"&&{width:"auto",height:"100%"})),Et=g.forwardRef(function(e,o){const r=V({props:e,name:"MuiCollapse"}),{addEndListener:a,children:p,className:l,collapsedSize:u="0px",component:f,easing:i,in:v,onEnter:E,onEntered:x,onEntering:k,onExit:m,onExited:b,onExiting:T,orientation:I="vertical",style:D,timeout:h=Nt.standard,TransitionComponent:P=Ct}=r,S=w(r,Jt),A=n({},r,{orientation:I,collapsedSize:u}),y=Kt(A),J=dt(),R=g.useRef(),C=g.useRef(null),F=g.useRef(),_=typeof u=="number"?`${u}px`:u,H=I==="horizontal",G=H?"width":"height";g.useEffect(()=>()=>{clearTimeout(R.current)},[]);const q=g.useRef(null),ct=pt(o,q),O=d=>z=>{if(d){const N=q.current;z===void 0?d(N):d(N,z)}},c=()=>C.current?C.current[H?"clientWidth":"clientHeight"]:0,$=O((d,z)=>{C.current&&H&&(C.current.style.position="absolute"),d.style[G]=_,E&&E(d,z)}),tt=O((d,z)=>{const N=c();C.current&&H&&(C.current.style.position="");const{duration:K,easing:et}=nt({style:D,timeout:h,easing:i},{mode:"enter"});if(h==="auto"){const mt=J.transitions.getAutoHeightDuration(N);d.style.transitionDuration=`${mt}ms`,F.current=mt}else d.style.transitionDuration=typeof K=="string"?K:`${K}ms`;d.style[G]=`${N}px`,d.style.transitionTimingFunction=et,k&&k(d,z)}),Pt=O((d,z)=>{d.style[G]="auto",x&&x(d,z)}),At=O(d=>{d.style[G]=`${c()}px`,m&&m(d)}),_t=O(b),Ot=O(d=>{const z=c(),{duration:N,easing:K}=nt({style:D,timeout:h,easing:i},{mode:"exit"});if(h==="auto"){const et=J.transitions.getAutoHeightDuration(z);d.style.transitionDuration=`${et}ms`,F.current=et}else d.style.transitionDuration=typeof N=="string"?N:`${N}ms`;d.style[G]=_,d.style.transitionTimingFunction=K,T&&T(d)});return s(P,n({in:v,onEnter:$,onEntered:Pt,onEntering:tt,onExit:At,onExited:_t,onExiting:Ot,addEndListener:d=>{h==="auto"&&(R.current=setTimeout(d,F.current||0)),a&&a(q.current,d)},nodeRef:q,timeout:h==="auto"?null:h},S,{children:(d,z)=>s(Qt,n({as:f,className:M(y.root,l,{entered:y.entered,exited:!v&&_==="0px"&&y.hidden}[d]),style:n({[H?"minWidth":"minHeight"]:_},D),ownerState:n({},A,{state:d}),ref:ct},z,{children:s(Zt,{ownerState:n({},A,{state:d}),className:y.wrapper,ref:C,children:s(te,{ownerState:n({},A,{state:d}),className:y.wrapperInner,children:p})})}))}))});Et.muiSupportAuto=!0;const ee=Et;function oe(t){return U("MuiIconButton",t)}const re=j("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ne=re,ae=["edge","children","className","color","disabled","disableFocusRipple","size"],se=t=>{const{classes:e,disabled:o,color:r,edge:a,size:p}=t,l={root:["root",o&&"disabled",r!=="default"&&`color${B(r)}`,a&&`edge${B(a)}`,`size${B(p)}`]};return W(l,oe,e)},ie=L($t,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.color!=="default"&&e[`color${B(o.color)}`],o.edge&&e[`edge${B(o.edge)}`],e[`size${B(o.size)}`]]}})(({theme:t,ownerState:e})=>n({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:X(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12}),({theme:t,ownerState:e})=>{var o;const r=(o=(t.vars||t).palette)==null?void 0:o[e.color];return n({},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&e.color!=="default"&&n({color:r==null?void 0:r.main},!e.disableRipple&&{"&:hover":n({},r&&{backgroundColor:t.vars?`rgba(${r.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:X(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),e.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},e.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${ne.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})}),le=g.forwardRef(function(e,o){const r=V({props:e,name:"MuiIconButton"}),{edge:a=!1,children:p,className:l,color:u="default",disabled:f=!1,disableFocusRipple:i=!1,size:v="medium"}=r,E=w(r,ae),x=n({},r,{edge:a,color:u,disabled:f,disableFocusRipple:i,size:v}),k=se(x);return s(ie,n({className:M(k.root,l),centerRipple:!0,focusRipple:!i,disabled:f,ref:o,ownerState:x},E,{children:p}))}),ce=le;function de(t){return U("MuiAppBar",t)}j("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const pe=["className","color","enableColorOnDark","position"],ue=t=>{const{color:e,position:o,classes:r}=t,a={root:["root",`color${B(e)}`,`position${B(o)}`]};return W(a,de,r)},ot=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,fe=L(It,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,e[`position${B(o.position)}`],e[`color${B(o.color)}`]]}})(({theme:t,ownerState:e})=>{const o=t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[900];return n({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!t.vars&&n({},e.color==="default"&&{backgroundColor:o,color:t.palette.getContrastText(o)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},t.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&n({backgroundColor:"transparent",color:"inherit"},t.palette.mode==="dark"&&{backgroundImage:"none"})),t.vars&&n({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:ot(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:ot(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:ot(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:ot(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ge=g.forwardRef(function(e,o){const r=V({props:e,name:"MuiAppBar"}),{className:a,color:p="primary",enableColorOnDark:l=!1,position:u="fixed"}=r,f=w(r,pe),i=n({},r,{color:p,position:u,enableColorOnDark:l}),v=ue(i);return s(fe,n({square:!0,component:"header",ownerState:i,elevation:4,className:M(v.root,a,u==="fixed"&&"mui-fixed"),ref:o},f))}),ve=ge,me=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function he(t,e,o){const r=e.getBoundingClientRect(),a=o&&o.getBoundingClientRect(),p=Rt(e);let l;if(e.fakeTransform)l=e.fakeTransform;else{const i=p.getComputedStyle(e);l=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}let u=0,f=0;if(l&&l!=="none"&&typeof l=="string"){const i=l.split("(")[1].split(")")[0].split(",");u=parseInt(i[4],10),f=parseInt(i[5],10)}return t==="left"?a?`translateX(${a.right+u-r.left}px)`:`translateX(${p.innerWidth+u-r.left}px)`:t==="right"?a?`translateX(-${r.right-a.left-u}px)`:`translateX(-${r.left+r.width-u}px)`:t==="up"?a?`translateY(${a.bottom+f-r.top}px)`:`translateY(${p.innerHeight+f-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-f}px)`:`translateY(-${r.top+r.height-f}px)`}function xe(t){return typeof t=="function"?t():t}function rt(t,e,o){const r=xe(o),a=he(t,e,r);a&&(e.style.webkitTransform=a,e.style.transform=a)}const ye=g.forwardRef(function(e,o){const r=dt(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},p={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:f,container:i,direction:v="down",easing:E=a,in:x,onEnter:k,onEntered:m,onEntering:b,onExit:T,onExited:I,onExiting:D,style:h,timeout:P=p,TransitionComponent:S=Ct}=e,A=w(e,me),y=g.useRef(null),J=pt(f.ref,y,o),R=c=>$=>{c&&($===void 0?c(y.current):c(y.current,$))},C=R((c,$)=>{rt(v,c,i),Ft(c),k&&k(c,$)}),F=R((c,$)=>{const tt=nt({timeout:P,style:h,easing:E},{mode:"enter"});c.style.webkitTransition=r.transitions.create("-webkit-transform",n({},tt)),c.style.transition=r.transitions.create("transform",n({},tt)),c.style.webkitTransform="none",c.style.transform="none",b&&b(c,$)}),_=R(m),H=R(D),G=R(c=>{const $=nt({timeout:P,style:h,easing:E},{mode:"exit"});c.style.webkitTransition=r.transitions.create("-webkit-transform",$),c.style.transition=r.transitions.create("transform",$),rt(v,c,i),T&&T(c)}),q=R(c=>{c.style.webkitTransition="",c.style.transition="",I&&I(c)}),ct=c=>{l&&l(y.current,c)},O=g.useCallback(()=>{y.current&&rt(v,y.current,i)},[v,i]);return g.useEffect(()=>{if(x||v==="down"||v==="right")return;const c=St(()=>{y.current&&rt(v,y.current,i)}),$=Rt(y.current);return $.addEventListener("resize",c),()=>{c.clear(),$.removeEventListener("resize",c)}},[v,x,i]),g.useEffect(()=>{x||O()},[x,O]),s(S,n({nodeRef:y,onEnter:C,onEntered:_,onEntering:F,onExit:G,onExited:q,onExiting:H,addEndListener:ct,appear:u,in:x,timeout:P},A,{children:(c,$)=>g.cloneElement(f,n({ref:J,style:n({visibility:c==="exited"&&!x?"hidden":void 0},h,f.props.style)},$))}))}),be=ye;function Ce(t){return U("MuiDrawer",t)}j("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const $e=["BackdropProps"],Ie=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Tt=(t,e)=>{const{ownerState:o}=t;return[e.root,(o.variant==="permanent"||o.variant==="persistent")&&e.docked,e.modal]},Re=t=>{const{classes:e,anchor:o,variant:r}=t,a={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${B(o)}`,r!=="temporary"&&`paperAnchorDocked${B(o)}`]};return W(a,Ce,e)},ke=L(Ut,{name:"MuiDrawer",slot:"Root",overridesResolver:Tt})(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer})),xt=L("div",{shouldForwardProp:kt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Tt})({flex:"0 0 auto"}),Be=L(It,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.paper,e[`paperAnchor${B(o.anchor)}`],o.variant!=="temporary"&&e[`paperAnchorDocked${B(o.anchor)}`]]}})(({theme:t,ownerState:e})=>n({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},e.anchor==="left"&&{left:0},e.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},e.anchor==="right"&&{right:0},e.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},e.anchor==="left"&&e.variant!=="temporary"&&{borderRight:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="top"&&e.variant!=="temporary"&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="right"&&e.variant!=="temporary"&&{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},e.anchor==="bottom"&&e.variant!=="temporary"&&{borderTop:`1px solid ${(t.vars||t).palette.divider}`})),zt={left:"right",right:"left",top:"down",bottom:"up"};function Ee(t){return["left","right"].indexOf(t)!==-1}function Te(t,e){return t.direction==="rtl"&&Ee(e)?zt[e]:e}const ze=g.forwardRef(function(e,o){const r=V({props:e,name:"MuiDrawer"}),a=dt(),p={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:u,children:f,className:i,elevation:v=16,hideBackdrop:E=!1,ModalProps:{BackdropProps:x}={},onClose:k,open:m=!1,PaperProps:b={},SlideProps:T,TransitionComponent:I=be,transitionDuration:D=p,variant:h="temporary"}=r,P=w(r.ModalProps,$e),S=w(r,Ie),A=g.useRef(!1);g.useEffect(()=>{A.current=!0},[]);const y=Te(a,l),R=n({},r,{anchor:l,elevation:v,open:m,variant:h},S),C=Re(R),F=s(Be,n({elevation:h==="temporary"?v:0,square:!0},b,{className:M(C.paper,b.className),ownerState:R,children:f}));if(h==="permanent")return s(xt,n({className:M(C.root,C.docked,i),ownerState:R,ref:o},S,{children:F}));const _=s(I,n({in:m,direction:zt[y],timeout:D,appear:A.current},T,{children:F}));return h==="persistent"?s(xt,n({className:M(C.root,C.docked,i),ownerState:R,ref:o},S,{children:_})):s(ke,n({BackdropProps:n({},u,x,{transitionDuration:D}),className:M(C.root,C.modal,i),open:m,ownerState:R,onClose:k,hideBackdrop:E,ref:o},S,P,{children:_}))}),Me=ze;function Le(t){return U("MuiListItemButton",t)}const De=j("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Q=De,we=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Pe=(t,e)=>{const{ownerState:o}=t;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters]},Ae=t=>{const{alignItems:e,classes:o,dense:r,disabled:a,disableGutters:p,divider:l,selected:u}=t,i=W({root:["root",r&&"dense",!p&&"gutters",l&&"divider",a&&"disabled",e==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},Le,o);return n({},o,i)},_e=L($t,{shouldForwardProp:t=>kt(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Pe})(({theme:t,ownerState:e})=>n({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Q.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:X(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Q.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:X(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Q.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:X(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:X(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Q.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Q.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.alignItems==="flex-start"&&{alignItems:"flex-start"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.dense&&{paddingTop:4,paddingBottom:4})),Oe=g.forwardRef(function(e,o){const r=V({props:e,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:p=!1,component:l="div",children:u,dense:f=!1,disableGutters:i=!1,divider:v=!1,focusVisibleClassName:E,selected:x=!1,className:k}=r,m=w(r,we),b=g.useContext(at),T=g.useMemo(()=>({dense:f||b.dense||!1,alignItems:a,disableGutters:i}),[a,b.dense,f,i]),I=g.useRef(null);jt(()=>{p&&I.current&&I.current.focus()},[p]);const D=n({},r,{alignItems:a,dense:T.dense,disableGutters:i,divider:v,selected:x}),h=Ae(D),P=pt(I,o);return s(at.Provider,{value:T,children:s(_e,n({ref:P,href:m.href||m.to,component:(m.href||m.to)&&l==="div"?"button":l,focusVisibleClassName:M(h.focusVisible,E),ownerState:D,className:M(h.root,k)},m,{classes:h,children:u}))})}),yt=Oe;function Ne(t){return U("MuiListItemIcon",t)}j("MuiListItemIcon",["root","alignItemsFlexStart"]);const Se=["className"],Fe=t=>{const{alignItems:e,classes:o}=t;return W({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},Ne,o)},Ue=L("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(({theme:t,ownerState:e})=>n({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},e.alignItems==="flex-start"&&{marginTop:8})),je=g.forwardRef(function(e,o){const r=V({props:e,name:"MuiListItemIcon"}),{className:a}=r,p=w(r,Se),l=g.useContext(at),u=n({},r,{alignItems:l.alignItems}),f=Fe(u);return s(Ue,n({className:M(f.root,a),ownerState:u,ref:o},p))}),Ve=je;function We(t){return U("MuiListItemText",t)}const He=j("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bt=He,Ge=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],qe=t=>{const{classes:e,inset:o,primary:r,secondary:a,dense:p}=t;return W({root:["root",o&&"inset",p&&"dense",r&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},We,e)},Xe=L("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[{[`& .${bt.primary}`]:e.primary},{[`& .${bt.secondary}`]:e.secondary},e.root,o.inset&&e.inset,o.primary&&o.secondary&&e.multiline,o.dense&&e.dense]}})(({ownerState:t})=>n({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})),Ye=g.forwardRef(function(e,o){const r=V({props:e,name:"MuiListItemText"}),{children:a,className:p,disableTypography:l=!1,inset:u=!1,primary:f,primaryTypographyProps:i,secondary:v,secondaryTypographyProps:E}=r,x=w(r,Ge),{dense:k}=g.useContext(at);let m=f??a,b=v;const T=n({},r,{disableTypography:l,inset:u,primary:!!m,secondary:!!b,dense:k}),I=qe(T);return m!=null&&m.type!==Y&&!l&&(m=s(Y,n({variant:k?"body2":"body1",className:I.primary,component:i!=null&&i.variant?void 0:"span",display:"block"},i,{children:m}))),b!=null&&b.type!==Y&&!l&&(b=s(Y,n({variant:"body2",className:I.secondary,color:"text.secondary",display:"block"},E,{children:b}))),Z(Xe,n({className:M(I.root,p),ownerState:T,ref:o},x,{children:[m,b]}))}),Je=Ye;function Ke(t){return U("MuiToolbar",t)}j("MuiToolbar",["root","gutters","regular","dense"]);const Qe=["className","component","disableGutters","variant"],Ze=t=>{const{classes:e,disableGutters:o,variant:r}=t;return W({root:["root",!o&&"gutters",r]},Ke,e)},to=L("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,!o.disableGutters&&e.gutters,e[o.variant]]}})(({theme:t,ownerState:e})=>n({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},e.variant==="dense"&&{minHeight:48}),({theme:t,ownerState:e})=>e.variant==="regular"&&t.mixins.toolbar),eo=g.forwardRef(function(e,o){const r=V({props:e,name:"MuiToolbar"}),{className:a,component:p="div",disableGutters:l=!1,variant:u="regular"}=r,f=w(r,Qe),i=n({},r,{component:p,disableGutters:l,variant:u}),v=Ze(i);return s(to,n({as:p,className:M(v.root,a),ref:o,ownerState:i},f))}),oo=eo;var ut={},ro=it;Object.defineProperty(ut,"__esModule",{value:!0});var Mt=ut.default=void 0,no=ro(st()),ao=lt,so=(0,no.default)((0,ao.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Mt=ut.default=so;const io=({setIsOpenedMenu:t})=>{const e=Vt();return s(ve,{position:"fixed",sx:{mb:2},children:s(Bt,{children:Z(oo,{variant:"regular",sx:{display:"flex",justifyContent:"space-between"},disableGutters:!0,children:[s(ce,{color:"inherit",onClick:()=>t(!0),children:s(Mt,{})}),s(Y,{variant:"h5",children:"Ваше рабочее пространство"}),s(Wt,{variant:"outlined",color:"inherit",onClick:()=>e(Ht()),children:"Выйти"})]})})})};var ft={},lo=it;Object.defineProperty(ft,"__esModule",{value:!0});var Lt=ft.default=void 0,co=lo(st()),po=lt,uo=(0,co.default)((0,po.jsx)("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"}),"Dashboard");Lt=ft.default=uo;var gt={},fo=it;Object.defineProperty(gt,"__esModule",{value:!0});var Dt=gt.default=void 0,go=fo(st()),vo=lt,mo=(0,go.default)((0,vo.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");Dt=gt.default=mo;var vt={},ho=it;Object.defineProperty(vt,"__esModule",{value:!0});var wt=vt.default=void 0,xo=ho(st()),yo=lt,bo=(0,xo.default)((0,yo.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");wt=vt.default=bo;const Co=({isOpenedMenu:t,setIsOpenedMenu:e})=>{const[o,r]=g.useState(!1);return s(Me,{open:t,anchor:"left",onClose:()=>e(!1),children:s(Gt,{sx:{width:200},children:Z(qt,{disablePadding:!0,children:[Z(yt,{onClick:()=>r(l=>!l),children:[s(Ve,{children:s(Lt,{})}),s(Je,{primary:"Доски"}),o?s(Dt,{}):s(wt,{})]}),s(ee,{unmountOnExit:!0,in:o,timeout:"auto",children:s(yt,{sx:{pl:4},children:s(Xt,{to:"/",children:s(Y,{children:"Перейти к доскам"})})})})]})})})},Ro=({children:t})=>{const[e,o]=g.useState(!1);return Z(ht,{children:[s(io,{setIsOpenedMenu:o}),s(Co,{isOpenedMenu:e,setIsOpenedMenu:o}),s(Bt,{component:"main",sx:{display:"flex",overflowX:"scroll",minHeight:"calc(100vh - 80px)",mt:"80px"},maxWidth:"xl",children:s(g.Suspense,{fallback:s(ht,{children:"Loading..."}),children:t})})]})};export{Ro as default};
